﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EyFramework.ORM;
using ShuJuGj.Entity;

namespace ShuJuGj.Core.Dao
{
    /// <summary>
    ///  GY_TUPIANXX表的数据库操作 
    /// </summary>
    public class GyTupianxxDao : BaseDaoHis<GyTupianxx>, IGyTupianxxDao
    {
        public bool DeleteTuPianxx(string name)
        {
            return Db.Deleteable<GyTupianxx>().Where(p=>p.TUPIANID == name).ExecuteCommand()>0;
        }

        public GyTupianxx GetTuPianxx(string name)
        {
            return Db.Queryable<GyTupianxx>().Where(p => p.TUPIANID == name).First();
        }
    }
}
